import request from '@/service/index.js'

export const addShortDatedProduct = (data) => {
  return request.post('/short/dated/product/add/product', data)
}
export const listShortDatedProduct = (keyword, page, pageSize) => {
  return request.get('/short/dated/product/list', {
    params: {
      keyword,
      page,
      pageSize,
    },
  })
}
export const deleteShortDatedProductById = (productId) => {
  return request.delete('/short/dated/product/delete', {
    params: {
      id: productId,
    },
  })
}

export const updateShortDatedProduct = (data) => {
  return request.put('/short/dated/product/update/product', data)
}
